﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace PersonaLibrary.View.Host
{
	/// <summary>
	/// Interaction logic for MainWindow.xaml
	/// </summary>
	public partial class MainWindow : IView
	{
		public MainWindow()
		{
			InitializeComponent();
			
			Keyboard.AddKeyDownHandler(this, OnKeyDownHandler);
		}

		private void OnKeyDownHandler(object sender, KeyEventArgs e)
		{
			if(e.Key == Key.F && Keyboard.Modifiers == ModifierKeys.Control)
			{
				//Keyboard.Focus(filterBox);
				//filterBox.SelectAll();
			}
		}

		private void RibbonWindow_Loaded(object sender, RoutedEventArgs e)
		{
		}

		private void filterBox_TextChanged(object sender, TextChangedEventArgs e)
		{
			//listBox.Items.Filter = delegate(object arg)
			//                        {
			//                            return arg.ToString().ToUpper().StartsWith(filterBox.Text.ToUpper());
			//                        };
		}
	}
}
